package com.hxd.otc.api;

import com.hxd.otc.base.BaseBean;
import com.hxd.otc.module.wallet.bean.CreateOrderResultBean;
import com.hxd.otc.module.wallet.bean.PayOrderResultBean;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * Created by lzy on 2018/8/21 0021.
 * description ${支付Api}
 */
public interface IPayApi {
    @POST("pay/createOrder")
    Observable<BaseBean<CreateOrderResultBean>> createOrder(@Body RequestBody body);

    @POST("pay/payOrder")
    Observable<BaseBean<PayOrderResultBean>> payOrder(@Body RequestBody body);

    @POST("pay/queryOrder")
    Observable<BaseBean<PayOrderResultBean>> queryOrder(@Body RequestBody body);

    @POST("pay/innerQueryOrder")
    Observable<BaseBean<PayOrderResultBean>> innerQueryOrder(@Query("preId") String preId);

    @POST("pay/innerPayOrder")
    Observable<BaseBean<PayOrderResultBean>> innerPayOrder(@Query("preId") String preId, @Query("userId")String userId,@Query("payPassWord") String payPassWord);

}
